<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script>
    // 检测字面量的数据类型
    console.log(typeof(2));
    console.log(typeof(2.4));
    console.log(typeof(Infinity));
    console.log(typeof(NaN));
    console.log(typeof("字符串"));
    console.log(typeof(undefined));
    console.log(typeof(true));
    console.log(typeof(false));
    console.log(typeof(null));
    console.log(typeof 67);
    console.log(typeof(67 + 78));
    console.log(typeof 67 + 78);
  </script>
</head>
<body>
  
</body>
</html>